<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="net.study.TestdataDao"%>
<%@page import="java.util.List"%>
<%@page import="net.study.TestdataDto"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>TEST DATA</title>
</head>
<body>
<H1>Using DAO</H1>

<%
	List<TestdataDto> list = new TestdataDao().getList();
	for (TestdataDto dto : list) {
%>
	<%= dto.getId() + " " + dto.getFoo() + " " + dto.getBar() + "<br/>" %>
<%

	}
%>
<br/>
</body>
</html>